package com.cloudkinto.service.platform.vo.yahoo;

import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class OrderYahooShipEntity {
    private String ShipFirstName;
    private String ShipLastName;
    private String ShipPrefecture;
    private String ShipZipCode;
    private String ShipAddress1;
    private String ShipAddress2;
    private String ShipPhoneNumber;
    private String ShipCity;
    private String shipStatus;
    private String shipMethod;
    private String shipMethodName;
    private String shipRequestDate;//YYYY-MM-DD
    private String shipRequestTime;
    private String shipNotes;
    private String shipCompanyCode;
    private String shipInvoiceNumber1;
    private String shipInvoiceNumber2;
    private String shipInvoiceNumberEmptyReason;
    private String shipUrl;
    private String arriveType;
    private String shipDate;
    private String arrivalDate;//YYYY-MM-DD

    public String getShipName() {
        StringBuilder builder = new StringBuilder();
        if (StringUtils.isNotBlank(ShipLastName)) {
            builder.append(ShipLastName);
        }
        if (StringUtils.isNotBlank(ShipFirstName)) {
            if (builder.length() > 0) {
                builder.append(" ");
            }
            builder.append(ShipFirstName);
        }
        return builder.toString();
    }


}
